//
//  RokumoteViewController.h
//  Rokumote
//
//  Created by John Roark on 10/6/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RokuPlayer.h"

@interface RokumoteViewController : UIViewController {
	UIView	*remote;
	UIView	*configuration;
	
	UIButton	*homeButton;
	UIButton	*upButton;
	UIButton	*rightButton;
	UIButton	*leftButton;
	UIButton	*downButton;
	UIButton	*selectButton;
	UIButton	*forwardButton;
	UIButton	*rewindButton;
	UIButton	*playButton;
	UIButton	*infoButton;
	UIButton	*applyButton;
	UIButton	*cancelButton;
	UIButton	*testButton;
	UITextField	*ipAddress;
	UILabel		*statusLabel;
	
	RokuPlayer	*player;
	
	UILabel		*label;
@public
	UIActivityIndicatorView	*searchSpinner;
	//UIActivityIndicatorView	*sendSpinner;
}

@property (nonatomic, retain) IBOutlet UIView	*remote;
@property (nonatomic, retain) IBOutlet UIView	*configuration;

@property (nonatomic, retain) IBOutlet UIButton *homeButton;
@property (nonatomic, retain) IBOutlet UIButton *upButton;
@property (nonatomic, retain) IBOutlet UIButton *rightButton;
@property (nonatomic, retain) IBOutlet UIButton *leftButton;
@property (nonatomic, retain) IBOutlet UIButton *downButton;
@property (nonatomic, retain) IBOutlet UIButton *selectButton;
@property (nonatomic, retain) IBOutlet UIButton *forwardButton;
@property (nonatomic, retain) IBOutlet UIButton *rewindButton;
@property (nonatomic, retain) IBOutlet UIButton *playButton;
@property (nonatomic, retain) IBOutlet UIButton *infoButton;
@property (nonatomic, retain) IBOutlet UIButton *applyButton;
@property (nonatomic, retain) IBOutlet UIButton *cancelButton;
@property (nonatomic, retain) IBOutlet UIButton *testButton;
@property (nonatomic, retain) IBOutlet UITextField *ipAddress;
@property (nonatomic, retain) IBOutlet UILabel	*label;
@property (nonatomic, retain) IBOutlet UILabel	*statusLabel;

@property (nonatomic, retain) IBOutlet UIActivityIndicatorView	*searchSpinner;
//@property (nonatomic, retain) IBOutlet UIActivityIndicatorView	*sendSpinner;

@property (nonatomic, retain) RokuPlayer *player;

- (IBAction) pressButton: (id) sender;
- (void) FindRoku: (RokumoteViewController *) obj;
- (void) SendCommand: (NSString *) str;
//- (void) updateStatus: (int) p;

@end

